﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Avatar.Model;
using AvatarHelper;
using System.Linq;
using System.Data.Linq;

public partial class ascx_PageFooter : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            using (var _adc = DBHelper.GetDataContext())
            {
                var _footer = _adc.SiteConfig.Select(f => new { f.Footer }).FirstOrDefault();
                if (_footer != null)
                {
                    lbl_Footer.Text = _footer.Footer;
                }
            }
        }
    }
}
